package com.hjq.mallproduct.feign;

import com.hjq.mallproduct.feign.error.WareFeignCallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @auther HJQ
 */
@FeignClient(value = "mall-ware" ,fallback = WareFeignCallBack.class)
public interface WareFeign {
    @RequestMapping("mallware/waresku/hasStock")
    Boolean hasStock(@RequestParam Long skuId );
}
